title {A Die by Jeff Sieu. Made for Google Code-in 2017}
units mm
put {body_outer.r} comb region yes tree {l body_outer.c}
attr set {body_outer.r} {oshader} {plastic} {region} {R} {shader} {plastic {re 0.1 ri 1.4 sh 12}} {region_id} {1000} {material_id} {1} {los} {100} {color} {255/255/255}
put {body_inner.r} comb region yes tree {l body_inner.c}
attr set {body_inner.r} {oshader} {plastic} {region} {R} {shader} {plastic {sp 0.9 di 0.1}} {region_id} {1001} {material_id} {1} {los} {100} {color} {0/0/0}
put {body_outer.c} comb region no tree {- {- {n {l body_rpp.s} {l body_sphere.s}} {l dots.c}} {l body_inner.c}}
put {body_inner.c} comb region no tree {- {n {l body_rpp_inner.s} {l body_sphere_inner.s}} {l dots.c}}
put {cube_edges.c} comb region no tree {u {u {l cube_rcc1.s} {l cube_rcc2.s}} {l cube_rcc3.s}}
put {cube_rcc3.s} tgc V {8 10 8}  H {0 -20 0}  A {0 0 -2}  B {2 0 0}  C {0 0 -2}  D {2 0 0} 
put {cube_rcc2.s} tgc V {8 8 10}  H {0 0 -20}  A {0 2 0}  B {2 0 0}  C {0 2 0}  D {2 0 0} 
put {cube_rcc1.s} tgc V {10 8 8}  H {-20 0 0}  A {0 0 2}  B {0 2 0}  C {0 0 2}  D {0 2 0} 
put {body_rpp_inner.s} arb8 V1 {9.900000000000000355271368 -9.900000000000000355271368 -9.900000000000000355271368}  V2 {9.900000000000000355271368 9.899999999999986144416653 -9.900000000000000355271368}  V3 {9.900000000000000355271368 9.899999999999986144416653 9.900000000000000355271368}  V4 {9.900000000000000355271368 -9.900000000000000355271368 9.900000000000000355271368}  V5 {-9.899999999999922195570434 -9.900000000000000355271368 -9.900000000000000355271368}  V6 {-9.899999999999922195570434 9.899999999999986144416653 -9.900000000000000355271368}  V7 {-9.899999999999922195570434 9.899999999999986144416653 9.900000000000000355271368}  V8 {-9.899999999999922195570434 -9.900000000000000355271368 9.900000000000000355271368} 
put {body_rpp.s} arb8 V1 {10 -10 -10}  V2 {10 9.999999999999985789145285 -10}  V3 {10 9.999999999999985789145285 10}  V4 {10 -10 10}  V5 {-9.999999999999921840299066 -10 -10}  V6 {-9.999999999999921840299066 9.999999999999985789145285 -10}  V7 {-9.999999999999921840299066 9.999999999999985789145285 10}  V8 {-9.999999999999921840299066 -10 10} 
put {body_sphere_inner.s} ell V {0 0 0}  A {13.4143020316096475141876 0 0}  B {0 13.4143020316096475141876 0}  C {0 0 13.4143020316096475141876} 
put {dots6.c} comb region no tree {u {u {u {l sph61.s} {l sph62.s}} {u {l sph63.s} {l sph64.s}}} {u {l sph65.s} {l sph66.s}}}
put {dots5.c} comb region no tree {u {u {u {l sph51.s} {l sph52.s}} {u {l sph53.s} {l sph54.s}}} {l sph55.s}}
put {dots4.c} comb region no tree {u {u {l sph41.s} {l sph42.s}} {u {l sph43.s} {l sph44.s}}}
put {dots3.c} comb region no tree {u {u {l sph31.s} {l sph32.s}} {l sph33.s}}
put {dots2.c} comb region no tree {u {l sph21.s} {l sph22.s}}
put {dots1.c} comb region no tree {l sph11.s}
put {sph66.s} ell V {5.5 -12 -3.5}  A {2.751840000000000063806738 0 0}  B {0 2.751840000000000063806738 0}  C {0 0 2.751840000000000063806738} 
put {sph65.s} ell V {-5.5 -12 -3.49999999999999955591079}  A {2.751840000000000063806738 0 0}  B {0 2.751840000000000063806738 0}  C {0 0 2.751840000000000063806738} 
put {sph55.s} ell V {12 4.5 4.5}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph64.s} ell V {-5.5 -12 3.5}  A {2.751840000000000063806738 0 0}  B {0 2.751840000000000063806738 0}  C {0 0 2.751840000000000063806738} 
put {sph54.s} ell V {12 -4.5 4.5}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph63.s} ell V {5.5 -12 3.5}  A {2.751840000000000063806738 0 0}  B {0 2.751840000000000063806738 0}  C {0 0 2.751840000000000063806738} 
put {sph44.s} ell V {-3.5 -3.5 12}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph53.s} ell V {12 -4.5 -4.5}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph62.s} ell V {0 -12 -3.5}  A {2.751840000000000063806738 0 0}  B {0 2.751840000000000063806738 0}  C {0 0 2.751840000000000063806738} 
put {sph43.s} ell V {-3.5 3.5 12}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph52.s} ell V {12 4.5 -4.5}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph61.s} ell V {0 -12 3.50000000000000044408921}  A {2.751840000000000063806738 0 0}  B {0 2.751840000000000063806738 0}  C {0 0 2.751840000000000063806738} 
put {sph33.s} ell V {-4.5 -4.5 -12}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph42.s} ell V {3.5 -3.5 12}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph51.s} ell V {12 0 0}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph32.s} ell V {0 0 -12}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph41.s} ell V {3.5 3.5 12}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph22.s} ell V {-11.99999999999999822364316 3.49999999999999911182158 3.49999999999999911182158}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph31.s} ell V {4.5 4.5 -12}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph21.s} ell V {-11.99999999999998934185896 -3.50000000000000088817842 -3.50000000000000088817842}  A {2.86650000000000027000624 0 0}  B {0 2.86650000000000027000624 0}  C {0 0 2.86650000000000027000624} 
put {sph11.s} ell V {0 12.5 0}  A {2.211859722021807250769143 1.981446994437259911947535 1.852442813782255726096082}  B {-1.916905671313780867848209 2.832975207637170811381111 -0.7414338272552269959447813}  C {-1.919153255314234307604693 -0.5460030047066275482592346 2.875540210372395932836298} 
put {dots.c} comb region no tree {u {u {u {l dots1.c} {l dots2.c}} {u {l dots3.c} {l dots4.c}}} {u {l dots5.c} {l dots6.c}}}
put {die.g} comb region no tree {u {l body_outer.r} {l body_inner.r}}
put {body_sphere.s} ell V {0 0 0}  A {13.51430203160964715891623 0 0}  B {0 13.51430203160964715891623 0}  C {0 0 13.51430203160964715891623} 
